package com.hitqz.robot.dispatch.netty.strategy.job;

import cn.hutool.extra.spring.SpringUtil;
import com.google.common.cache.Cache;
import com.hitqz.robot.api.business.dto.RobotClientSummaryDto;
import com.hitqz.robot.api.business.entity.RobotEntity;
import com.hitqz.robot.api.business.entity.RobotJobEntity;
import com.hitqz.robot.dispatch.netty.model.DispatchJobDto;
import com.hitqz.robot.dispatch.netty.strategy.JobStrategy;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xupkun
 * @date 2025/4/13
 */
@Service("harbinStrategy")
@RequiredArgsConstructor
@Slf4j
public class HarbinStrategy implements JobStrategy {
    @Override
    public DispatchJobDto dispatchJob(Integer groupId, String taskContent) {
        Cache<String, RobotClientSummaryDto> posInfoDtoCache = SpringUtil.getBean("robotCache");
        Cache<Integer, List<RobotEntity>> robotDispatch = SpringUtil.getBean("robotDispatch");





        return null;
    }
}
